<template>
  <div class="play">
    <!--    :style="{height:fullHeight-20+`px`}"-->
    <!-- 背景S -->
    <div class="mainbg" :style="{ background: 'url(' + this.pic + ')' }"></div>
    <!-- 背景E -->
    <mainplay></mainplay>

    <!-- 底部 -->
    <footer>
      <div class="warp">
        <button class="open">打开</button>
        <button class="download">下载</button>
      </div>
    </footer>
  </div>
</template>

<script>
import mainplay from "@/components/play/mainplay.vue";
export default {
  data() {
    return {
      pic: sessionStorage.getItem("piclink"),
      // fullHeight: window.innerHeight,
    };
  },
  components: {
    mainplay,
  },
  methods: {
  },

};
</script>

<style lang="scss" >
.play {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  // overflow-y: hidden;
  .mainbg {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    filter: blur(30px);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: 50%;
    opacity: 1;
    transform: scale(1.5);
    transform-origin: center center;
    background-color: #161824;
    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.5);
    }
    &:-webkit-scrollbar {
      display: none;
    }
  }
  footer {
    width: 100%;
    position: absolute;
    height: 50px;
    z-index: 1;
    bottom: 0;
    .warp {
      margin: 0 auto;
      display: flex;
      justify-content: space-around;
      button {
        line-height: 40px;
        border-radius: 40px;
        width: vw(350);
        border: none;
        outline: none;
      }
      .open {
        background-color: transparent;
        border: 1px solid $mainColor;
        color: $mainColor;
        font-size: vw(30);
        font-weight: bold;
        letter-spacing: vw(10);
      }
      .download {
        background-color: $mainColor;
        border: 1px solid $mainColor;
        color: #fff;
        font-size: vw(30);
        font-weight: bold;
        letter-spacing: vw(10);
      }
    }
  }
}
</style>